﻿<%@ Page Language="VB" MasterPageFile="~/Interfaz/MasterPage.master" AutoEventWireup="false" CodeFile="frmAdminFacturaIngresar.aspx.vb" Inherits="Interfaz_frmAdminFacturaIngresar" title="Untitled Page" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>


<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
  
    <center>
                        <table style="width: 70%; border-right: lightblue thin solid; border-top: lightblue thin solid; border-left: lightblue thin solid; border-bottom: lightblue thin solid;" >
                            <tr>
                                <td align="center" colspan="6" style="width: 100%; text-align: center; background :black">
                                    <strong>FACTURA</strong></td>
                            </tr>
                            <tr>
                                <td style="width: 24%; text-align: left"> <br />
                                </td>
                                <td style="width: 1%;">
                                </td>
                                <td style="width: 25%;">
                                </td>
                                <td style="width: 24%;">
                                </td>
                                <td style="width: 1%;">
                                </td>
                                <td style="width: 25%;">
                                </td>
                            </tr>
                            <tr>
                                <td colspan="6" style="width: 100%; text-align: left">
                                    <strong>INGRESAR FACTURA</strong></td>
                            </tr>
                            <tr>
                                <td style="width: 95px; height: 26px; text-align: left">
                                    Razón Social&nbsp;</td>
                                <td style="height: 26px; text-align: left">
                                    :</td>
                                <td style="height: 26px; text-align: left">
                                    <asp:DropDownList ID="DropProveedor" runat="server" Width="200px" AutoPostBack="True">
                                    </asp:DropDownList></td>
                                <td style="width: 44px; height: 26px; text-align: left">
                                    Fono</td>
                                <td style="height: 26px; text-align: left">
                                    :</td>
                                <td style="height: 26px; text-align: left">
                                    <asp:TextBox ID="TxTfonoIF" runat="server" Font-Bold="False" TabIndex="2" Width="200px"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td style="width: 95px; height: 26px; text-align: left">
                                    Direccion</td>
                                <td style="height: 26px; text-align: left">
                                    :</td>
                                <td style="height: 26px; text-align: left">
                                    <asp:TextBox ID="TxtDireccionIF" runat="server" Font-Bold="False" TabIndex="1" Width="200px"></asp:TextBox></td>
                                <td style="width: 44px; height: 26px; text-align: left">
                                    Giro</td>
                                <td style="height: 26px; text-align: left">
                                    :</td>
                                <td style="height: 26px; text-align: left">
                                    <asp:TextBox ID="TxTGiroIF" runat="server" Font-Bold="False" TabIndex="6" Width="200px"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td style="width: 95px; height: 26px; text-align: left">
                                    R.U.T.</td>
                                <td style="height: 26px; text-align: left">
                                    :</td>
                                <td style="height: 26px; text-align: left">
                                    <asp:TextBox ID="TxtRut" runat="server" Font-Bold="False" Width="200px"></asp:TextBox></td>
                                <td style="width: 44px; height: 26px; text-align: left">
                                    Comuna</td>
                                <td style="height: 26px; text-align: left">
                                    :</td>
                                <td style="height: 26px; text-align: left">
                                    <asp:TextBox ID="TxTComunaIF" runat="server" Font-Bold="False" TabIndex="3" Width="200px" ReadOnly="True"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td style="width: 95px; height: 26px; text-align: left">
                                </td>
                                <td style="height: 26px; text-align: left">
                                </td>
                                <td style="height: 26px; text-align: left">
                                </td>
                                <td style="width: 44px; height: 26px; text-align: left">
                                    Ciudad</td>
                                <td style="height: 26px; text-align: left">
                                    :</td>
                                <td style="height: 26px; text-align: left">
                                    <asp:TextBox ID="TxTCiudadIF" runat="server" Font-Bold="False" Width="200px" ReadOnly="True"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td style="width: 95px; text-align: left"><BR />
                                </td>
                                <td style="text-align: left">
                                </td>
                                <td style="text-align: left">
                                </td>
                                <td style="width: 44px; text-align: left">
                                </td>
                                <td style="text-align: left">
                                </td>
                                <td style="text-align: left">
                                </td>
                            </tr>
                            <tr>
                                <td colspan="6" style="width: 100%">
                                    <strong>INGRESO ITEM&nbsp;</strong></td>
                            </tr>
                            <tr>
                                <td colspan="1" style="width: 95px; text-align: left">
                                        Fecha</td>
                                <td style="text-align: left">
                                    :</td>
                                <td style="text-align: left">
                                        <asp:TextBox ID="TxtFecha" runat="server" ReadOnly="True"></asp:TextBox>
                                        <cc1:calendarextender id="CalendarExtender1" runat="server" TargetControlID="TxtFecha" CssClass="calendarContainer" Format="dd/MM/yyyy"></cc1:calendarextender>
                                        <asp:ScriptManager id="ScriptManager1" runat="server">
                                        </asp:ScriptManager>
                                </td>
                                <td style="width: 44px; text-align: left">
                                </td>
                                <td style="text-align: left">
                                </td>
                                <td style="text-align: left">
                                </td>
                            </tr>
                            <tr>
                                <td colspan="1" style="width: 95px; text-align: left">
                                        Item</td>
                                <td style="text-align: left">
                                    :</td>
                                <td style="text-align: left">
                                        <asp:DropDownList ID="DropItemIF" runat="server" Width="200px">
                                        </asp:DropDownList></td>
                                <td style="width: 44px; text-align: left">
                                        Vendedor</td>
                                <td style="text-align: left">
                                    :</td>
                                <td style="text-align: left"><asp:DropDownList ID="DropVendedor" runat="server" Font-Bold="False" Width="200px">
                                </asp:DropDownList></td>
                            </tr>
                            <tr>
                                <td colspan="1" style="width: 95px; text-align: left">
                                        Código</td>
                                <td style="text-align: left">
                                    :</td>
                                <td style="text-align: left">
                                        <asp:TextBox ID="TxTCodigoIF" runat="server" Font-Bold="False" TabIndex="10" Width="200px"></asp:TextBox></td>
                                <td style="width: 44px; text-align: left">
                                        Detalle</td>
                                <td style="text-align: left">
                                    :</td>
                                <td style="text-align: left">
                                        <asp:TextBox ID="TxTDetalleIF" runat="server" Font-Bold="False" TabIndex="11" Width="200px"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td colspan="1" style="width: 95px; text-align: left">
                                        Cantidad</td>
                                <td style="text-align: left">
                                    :</td>
                                <td style="text-align: left">
                                        <asp:TextBox ID="TxTCantidadIF" runat="server" Font-Bold="False" TabIndex="11" Width="200px"></asp:TextBox></td>
                                <td style="width: 44px; text-align: left">
                                        Precio Unitario</td>
                                <td style="text-align: left">
                                    :</td>
                                <td style="text-align: left">
                                        <asp:TextBox ID="TxTPrecioUnitarioIF" runat="server" Font-Bold="False" TabIndex="11" Width="200px"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td colspan="1" style="width: 95px; text-align: left">
                                        Condición Venta</td>
                                <td style="text-align: left">
                                    :</td>
                                <td style="text-align: left">
                                        <asp:TextBox ID="TxTCondVentaIF" runat="server" Width="200px" Font-Bold="False"></asp:TextBox></td>
                                <td style="width: 44px; text-align: left">
                                        Iva</td>
                                <td style="text-align: left">
                                    :</td>
                                <td style="text-align: left">
                                        <asp:DropDownList ID="dropIva" runat="server" Font-Bold="False" Width="200px">
                                        </asp:DropDownList></td>
                            </tr>
                            <tr>
                                <td colspan="1" style="width: 95px; text-align: left">
                                        Orden de Compra</td>
                                <td style="text-align: left">
                                    :</td>
                                <td style="text-align: left">
                                    <asp:DropDownList ID="DropOrdenCompraIF" runat="server" Width="200px">
                                    </asp:DropDownList></td>
                                <td style="width: 44px; text-align: left">
                                        Guia Despacho</td>
                                <td style="text-align: left">
                                    :</td>
                                <td style="text-align: left">
                                    <asp:DropDownList ID="DropGuiaDespachoIF" runat="server" Width="200px">
                                    </asp:DropDownList></td>
                            </tr>
                            <tr>
                                <td colspan="1" style="width: 95px; text-align: left"><br />
                                </td>
                                <td style="text-align: left">
                                </td>
                                <td style="text-align: left">
                                </td>
                                <td style="width: 44px; text-align: left">
                                </td>
                                <td style="text-align: left">
                                </td>
                                <td style="text-align: left">
                                </td>
                            </tr>
                            <tr>
                                <td align="center" colspan="6" style="width: 100%; text-align: center">
                        <asp:Label ID="LabelAviso" runat="server" Width="920px"></asp:Label></td>
                            </tr>
                            <tr>
                                <td colspan="6" style="width: 100%; text-align: center">
                    <asp:GridView ID="GridFacturaRecibida" runat="server" AllowSorting="True" AutoGenerateColumns="False" CellPadding="4"
             ForeColor="#333333" GridLines="None"  Width="100%" CssClass="mGrid">
             <RowStyle BackColor="#EFF3FB" />
                        <Columns>
                            <asp:BoundField DataField="ITEM" HeaderText="Item">
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:BoundField DataField="CODIGO" HeaderText="Codigo">
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:BoundField DataField="DETALLE" HeaderText="Detalle">
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:BoundField DataField="CANTIDAD" HeaderText="Cantidad">
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                            <asp:BoundField DataField="PRECIOUNITARIO" HeaderText="Precio Unitario">
                                <ItemStyle HorizontalAlign="Center" />
                            </asp:BoundField>
                        </Columns>
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <EditRowStyle BackColor="#2461BF" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
                                            <asp:Button ID="Button4" runat="server" Text="Ingresar Item" Width="176px" /></td>
                            </tr>
                            <tr>
                                <td colspan="6" style="width: 100%; text-align: center">
                                    &nbsp;<asp:Button ID="Button5" runat="server" Text="Limpiar" Width="80px" />&nbsp;
                                            <asp:Button ID="Button6" runat="server" Text="Validar" Width="80px" /></td>
                            </tr>
                        </table>
    </center>
</asp:Content>

